﻿using System;
using System.Data;

namespace ContractManagementSystem
{
    public partial class ReportContract : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadReportContract();
        }
        /// <summary>
        /// Function LoadReportContract
        /// </summary>
        private void LoadReportContract()
        {
            var crystalReportContract = new CrystalReportContract();
            crystalReportContract.SetDataSource((DataTable)Session["ReportContract"]);
            ContractCrystalReportViewer.ReportSource = crystalReportContract;
            ContractCrystalReportViewer.DisplayGroupTree = false;
            ContractCrystalReportViewer.RefreshReport();
        }
    }
}
